﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Northeast.BRE.Common
{
    public class RuleDescriptionAttribute:Attribute
    {
        private const string c_ActivityDisplayNamePrefix = "Activity";
        private string m_DisplayName = String.Empty;

        public RuleDescriptionAttribute(string displayName)
        {
            m_DisplayName = String.IsNullOrEmpty(displayName) 
                ? String.Format("{0}_{1}", c_ActivityDisplayNamePrefix, Guid.NewGuid().ToString()) 
                : displayName;
        }
    }
}
